import com.opennews.openplatform.AMapHelper
import com.opennews.openplatform.security.AuthRequestValidator
import com.opennews.openplatform.security.TokenManager
import com.opennews.openplatform.security.UserActiveTokenManager

// Place your Spring DSL code here
beans = {
    authRequestValidator(AuthRequestValidator) {
        requestMapService = ref('requestMapService')
        tokenManager = ref('tokenManager')
        userActiveTokenManager = ref('userActiveTokenManager')
    }

    // For using AMap service.
    amapHelper(AMapHelper)

    userActiveTokenManager(UserActiveTokenManager)

    // For using Spring annotation.
    tokenManager(TokenManager)
}